﻿using System;
using System.Collections.Generic;
using Viettel.VOFFICE.DAO.Models;

namespace Viettel.VOFFICE.DAO.DAL.Repository
{
    /// <summary>
    /// xử lý bảng comment
    /// </summary>
    public class CommentRepository : IRepository<Comment>
    {
        private VOFFICEContext context;
        public CommentRepository(VOFFICEContext context)
        {
            if (context == null)
            {
                throw new Exception("Context must be init");
            }
            this.context = context;
        }
        public IEnumerable<Comment> Get()
        {
            throw new NotImplementedException();
        }

        public Comment GetById(object id)
        {
            throw new NotImplementedException();
        }

        public IEnumerable<Comment> FindByName(object s)
        {
            throw new NotImplementedException();
        }

        public void Insert(Comment T)
        {
            throw new NotImplementedException();
        }

        public void Delete(object id)
        {
            throw new NotImplementedException();
        }

        public void Delete(Comment T)
        {
            throw new NotImplementedException();
        }

        public void Update(Comment T)
        {
            throw new NotImplementedException();
        }

        public void Save()
        {
            context.SaveChanges();
        }
    }
}
